package com.zhentao.day03.pm;

/**
 * 拥有文具名称、价格和数量属性
 * 提供无参和有参构造方法；提供get/set方法
 * 提供抽象方法，用于展示成员变量值，无参无返回值
 */
public abstract class Stationery {
  private String name ;
  private double price ;
  private int num ;

  public abstract void show() ;

  public Stationery() {
  }

  public Stationery(String name, double price, int num) {
    this.name = name;
    this.price = price;
    this.num = num;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public double getPrice() {
    return price;
  }

  public void setPrice(double price) {
    this.price = price;
  }

  public int getNum() {
    return num;
  }

  public void setNum(int num) {
    this.num = num;
  }



}
